package com.kungkhies.domain.kungkher;

import com.kungkhies.domain.kungkhie.KungkhieSummary;
import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

public class Kungkher implements Serializable
{
    private static final long serialVersionUID = 1L;
    private Long id;
    private String kungkherName;
    private String password;
    private String fullName;
    private List<KungkhieSummary> kungkhies;
    private String email;
    private boolean updateByEmail;
    private String interests;
    private Date dateRegistered;
    

    public Long getId()
    {
        return id;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public String getKungkherName()
    {
        return this.kungkherName;
    }

    public void setKungkherName(String kungkherName)
    {
        this.kungkherName = kungkherName;
    }

    public String getPassword()
    {
        return this.password;
    }

    public void setPassword(String password)
    {
        this.password = password;
    }

    public void setFullName(String fullName)
    {
        this.fullName = fullName;
    }

    public String getFullName()
    {
        return fullName;
    }

    public void setEmail(String email)
    {
        this.email = email;
    }

    public String getEmail()
    {
        return email;
    }

    public void setKungkhies(List<KungkhieSummary> kungkhies)
    {
        this.kungkhies = kungkhies;
    }

    public List<KungkhieSummary> getKungkhies()
    {
        return kungkhies;
    }

    public void setUpdateByEmail(boolean updateByEmail)
    {
        this.updateByEmail = updateByEmail;
    }

    public boolean isUpdateByEmail()
    {
        return updateByEmail;
    }

    public Date getDateRegistered()
    {
        return dateRegistered;
    }

    public void setDateRegistered(Date dateRegistered)
    {
        this.dateRegistered = dateRegistered;
    }

    public String getInterests()
    {
        return interests;
    }

    public void setInterests(String interests)
    {
        this.interests = interests;
    }
    
    
    
    

    @Override
    public boolean equals(Object obj)
    {
        Kungkher other = (Kungkher) obj;
        return other.fullName.equals(fullName) && other.kungkherName.equals(kungkherName) && other.password.equals(password);
    }

    @Override
    public int hashCode()
    {
        // TODO Auto-generated method stub
        return super.hashCode();
    }
}
